Class TextUtilsTest

java.lang.Object
com.fsf.news.utils.TextUtilsTest

class TextUtilsTest extends Object
Tests for the TextUtils class.
  • Constructor Details

    • TextUtilsTest

      TextUtilsTest()
  • Method Details

    • testCleanAndTokenizeWords

      @ParameterizedTest @MethodSource void testCleanAndTokenizeWords(String input, List<String> expected)
      Tests the cleanAndTokenizeWords method with various inputs.
      Parameters:
      input - the input string
      expected - the expected list of words
    • testCleanAndTokenizeWords

      static Stream<org.junit.jupiter.params.provider.Arguments> testCleanAndTokenizeWords()
      Provides test data for the testCleanAndTokenizeWords method.
      Returns:
      A stream of test data
    • testCountSyllables

      @ParameterizedTest @MethodSource void testCountSyllables(String input, long expected)
      Tests the countSyllables method with various inputs.
      Parameters:
      input - the input string
      expected - the expected syllable count
    • testCountSyllables

      static Stream<org.junit.jupiter.params.provider.Arguments> testCountSyllables()
      Provides test data for the testCountSyllables method.
      Returns:
      A stream of test data
    • testCountWords

      @ParameterizedTest @MethodSource void testCountWords(String input, long expected)
      Tests the countWords method with various inputs.
      Parameters:
      input - the input string
      expected - the expected word count
    • testCountWords

      static Stream<org.junit.jupiter.params.provider.Arguments> testCountWords()
      Provides test data for the testCountWords method.
      Returns:
      A stream of test data
    • testCountSentences

      @ParameterizedTest @MethodSource void testCountSentences(String input, long expected)
      Tests the countSentences method with various inputs.
      Parameters:
      input - the input string
      expected - the expected sentence count
    • testCountSentences

      static Stream<org.junit.jupiter.params.provider.Arguments> testCountSentences()
      Provides test data for the testCountSentences method.
      Returns:
      A stream of test data